var doctorModule = (function() {
	return {
		/**
		 * 获取医生详情
		 * @param {Object} param
		 * @param {Object} callBack
		 */
		queryDetail: function(param, callBack) {
			utilModule.post({
				url: "doctor/doctorDetail",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
					console.log(response);
				}
			});
		},

		/**
		 * 获取医生列表
		 * @param {Object} param
		 * @param {Object} callBack
		 */
		queryList: function(param, callBack) {
			utilModule.post({
				url: "doctor/findDoctorIndex",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		
		
		/**
		 * 医生评价
		 * @param {Object} param
		 * @param {Object} callBack
		 */
		doctorEvaluate: function(param, callBack) {
			utilModule.post({
				url: "doctor/doctorEvaluate",
				data: param,
				needJson: true,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 医生服务时间列表
		 * @param {Object} param
		 * @param {Object} callBack
		 */
		queryServiceDateList: function(param, callBack) {
			utilModule.get({
				url: "phoneOrder/getBookTimeListByDoctorId",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		/**
		 * 最后一次订单信息
		 * @param {Object} param
		 * @param {Object} callBack
		 */
		getLastOrderByUserid: function(param, callBack) {
			utilModule.get({
				url: "phoneOrder/getLastOrderByUserid",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		
		// 我关注医生的ID的集合   
		doctorAttentionList: function(param, callBack){
			utilModule.post({
				url: "doctor/followDoctorIDS",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		},
		
		// 收藏|取消收藏 
		doctorAttention:function(param, callBack){
			utilModule.post({
				url: "doctor/followDoctor",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		}, 
		
		// 查询医院
		doctorGethops:function(param, callBack){
			utilModule.get({
				url: "doctor/gethops",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		}, 
		
		// 查询科室
		doctorDepartment:function(param, callBack){
			utilModule.get({
				url: "doctor/getDept",
				data: param,
				needJson: false,
				async: false,
				success: function(response) {
					callBack(response);
				}
			});
		}, 
	}
})();